<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>使用prompt语句</title>
		<script type="text/javascript">
			var city=prompt("你的家乡在哪里？","珠海");
			alert("你的家乡在："+city);
		</script>
	</head>
	<body>
	</body>
</html>
